home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / General / GCC 1.37.1r15 / Machines / tm-aix386.h < prev    next >
Text File  |  1990-03-14  |  3KB  |  99 lines

  1. /* Definitions for IBM PS2 running AIX/386.
  2.    From: Minh Tran-Le <TRANLE@intellicorp.com>
  3.    Copyright (C) 1988 Free Software Foundation, Inc.
  4.  
  5. This file is part of GNU CC.
  6.  
  7. GNU CC is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 1, or (at your option)
  10. any later version.
  11.  
  12. GNU CC is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with GNU CC; see the file COPYING.  If not, write to
  19. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21.  
  22. #include "tm-i386.h"
  23.  
  24. /* Use the ATT assembler syntax.  */
  25.  
  26. #include "tm-att386.h"
  27.  
  28. /* By default, target has a 80387.  */
  29.  
  30. #define TARGET_DEFAULT 1
  31.  
  32. /* Use crt1.o as a startup file and crtn.o as a closing file.  */
  33.  
  34. #define STARTFILE_SPEC  \
  35.   "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
  36.  
  37. #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} crtn.o%s"
  38.  
  39. /* Special flags for the linker.  I don't know what they do.  */
  40.  
  41. #define LINK_SPEC "%{!K:-K} %{!T*:-T0x00400000} %{lg} %{g} %{z:-lm}"
  42.  
  43. /* Specify predefined symbols in preprocessor.  */
  44.  
  45. #define CPP_PREDEFINES "-Dunix -Di386 -DAIX"
  46.  
  47. /* special flags for the aix assembler to generate the short form for all
  48.    qualifying forward reference */
  49.  
  50. #define ASM_SPEC "-s2"
  51.  
  52. /* Allow #sccs in preprocessor.  */
  53.  
  54. #define SCCS_DIRECTIVE
  55.  
  56. /* Output #ident as a .ident.  */
  57.  
  58. #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
  59.  
  60. /* We don't want to output SDB debugging information. */
  61.  
  62. #undef SDB_DEBUGGING_INFO
  63. #undef ASM_FILE_START
  64. #define ASM_FILE_START(FILE)                     \
  65.   do { fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name);    \
  66.        if (optimize) ASM_FILE_START_1 (FILE);            \
  67.      } while (0)
  68.  
  69. /* This was suggested, but it shouldn't be right for DBX output. -- RMS
  70.    #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
  71.  
  72. /* This is IBM AIX, it has a DBX debugger */
  73.  
  74. #define DBX_DEBUGGING_INFO
  75.  
  76. /* Implicit library calls should use memcpy, not bcopy, etc.  */
  77.  
  78. #define TARGET_MEM_FUNCTIONS
  79.  
  80. /* Don't write a `.optim' pseudo; this assembler
  81.    is said to have a bug when .optim is used.  */
  82.  
  83. #undef ASM_FILE_START_1
  84. #define ASM_FILE_START_1(FILE) fprintf (FILE, "\t.noopt\n");
  85.  
  86. /* Machines that use the AT&T assembler syntax
  87.    also return floating point values in an FP register.  */
  88. /* Define how to find the value returned by a function.
  89.    VALTYPE is the data type of the value (as a tree).
  90.    If the precise function being called is known, FUNC is its FUNCTION_DECL;
  91.    otherwise, FUNC is 0.  */
  92.  
  93. #define VALUE_REGNO(MODE) \
  94.   (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
  95.  
  96. /* 1 if N is a possible register number for a function value. */
  97.  
  98. #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
  99.